//
//  UIScreen+Extensions.swift
//  SwiftDemo
//
//  Created by Chris on 2017/6/13.
//  Copyright © 2017年 chris. All rights reserved.
//

import UIKit

extension UIScreen {
    
    /// h获取屏幕宽度
    ///
    /// - Returns: 宽度
    class func cj_screenWidth() -> CGFloat {
        return UIScreen.main.bounds.width
    }
    
    /// 获取屏幕高度
    ///
    /// - Returns: 高德
    class func cj_screenHeight() -> CGFloat {
        return UIScreen.main.bounds.height
    }
    
    /// 获取屏幕倍数
    ///
    /// - Returns: 倍数
    class func cj_screenScale() -> CGFloat {
        return UIScreen.main.scale
    }
}
